/**
 * 校园工作室管理模块路由
 */

const downlineRouter = {
    path: 'downline',
    component: resolve => require(['@/views/downline/index'], resolve),
    children: [
        {
            path: 'place-list',
            name: 'PlaceList',
            component: resolve => require(['@/views/downline/place-list'], resolve),
            meta: {
                authList: {
                // 浏览列表
                    auth_page: '__auto_by_action:ht-roadshow\\area\\edit',
                    // 删除场地
                    auth_delete: '__auto_by_action:ht-roadshow\\area\\delete',
                    // 数据excel导入
                    auth_import: '__auto_by_action:ht-area\\import',
                    // 添加场地
                    auth_add: '__auto_by_action:ht-roadshow\\area\\add',
                    // 编辑场地
                    auth_edit: '__auto_by_action:ht-roadshow\\area\\edit'
                },
                authResult: {}
            }
        },
        {
            path: 'place-edit',
            name: 'PlaceEdit',
            component: resolve => require(['@/views/downline/place-edit'], resolve),
            meta: {
                authList: {
                // 浏览列表
                    auth_page: ['__auto_by_action:ht-roadshow\\area\\get', '__auto_by_action:ht-roadshow\\area\\add', '__auto_by_action:ht-roadshow\\area\\edit'], //页面权限
                    // 删除学生
                    auth_save: '__auto_by_action:ht-roadshow\\area\\add', // 新增场地
                    auth_edit: '__auto_by_action:ht-roadshow\\area\\edit', // 编辑场地
                    auth_edit_school_area: '__auto_by_action:ht-roadshow\\school_area\\edit', // 编辑校区
                    auth_add_school_area: '__auto_by_action:ht-roadshow\\school_area\\add', // 添加校区
                    auth_get_schools: '__auto_by_action:ht-localinfo\\school\\get_list', // 获取某个省市学校列表
                    auth_get_school_areas: '__auto_by_action:ht-roadshow\\school_area\\get_list', //获取某个学校所有校区
                    auth_get_school_area: '__auto_by_action:ht-roadshow\\school_area\\get', // 获取某个校区相关信息
                },
                authResult: {}
            }
        },
        {
            path: 'person-list',
            name: 'PersonList',
            component: resolve => require(['@/views/downline/person-list'], resolve),
            meta: {
                authList: {
                // 浏览列表
                    auth_page: '__auto_by_action:ht-person\\get_ist',
                    // 新增人员
                    auth_add: '__auto_by_action:ht-person\\save',
                    // 编辑人员
                    auth_edit: '__auto_by_action:ht-person\\save',
                    // 删除人员
                    auth_delete: '__auto_by_action:ht-person\\delete',
                    // 导出
                    auth_export: '__auto_by_action:ht-person\\export'
                },
                authResult: {}
            }
        },
        {
            path: 'person-edit',
            name: 'PersonEdit',
            component: resolve => require(['@/views/downline/person-edit'], resolve),
            meta: {
                authList: {
                // 浏览列表
                    auth_page: ['__auto_by_action:ht-person\\get', '__auto_by_action:ht-person\\save'],
                    // 删除学生
                    auth_save: '__auto_by_action:ht-person\\save',
                    auth_phone_show: 'ht.person.phone_show',
                    auth_qq_show: 'ht.person.qq_show',
                    auth_weixin_show: 'ht.person.weixin_show',
                    auth_remark_show: 'ht.person.remark_show',

                },
                authResult: {}
            }
        }
    ]
};

export default downlineRouter;
